Skip to content

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Apr 29, 2021

A check for duplication between the submission and the libraries already on the list was already done. However, it is
possible that submitters will add the same library twice within a single submission. This was not previously checked for.
In addition to causing confusion at a later time for people working directly with the list, it's also possible that
allowing duplicates into the list could have harmful implications for the indexer or for Library Manager itself.

So it's safest to make a check for duplicates within the submission and return a helpful error message, requiring the
submission to contain only unique libraries before accepting it.


Demos

@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Apr 29, 2021
@per1234 per1234 requested review from silvanocerza and umbynos April 29, 2021 15:38
A check for duplication between the submission and the libraries already on the list was already done. However, it is
possible that submitters will add the same library twice within a single submission. This was not previously checked for.
In addition to causing confusion at a later time for people working directly with the list, it's also possible that
allowing duplicates into the list could have harmful implications for the indexer or for Library Manager itself.

So it's safest to make a check for duplicates within the submission and return a helpful error message, requiring the
submission to contain only unique libraries before accepting it.
@per1234 per1234 merged commit d1ed898 into arduino:main Apr 30, 2021
@per1234 per1234 deleted the duplicate-submissions branch April 30, 2021 16:50
@per1234 per1234 self-assigned this Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant